package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.xml.crypto.Data;
import java.util.Arrays;
import java.util.List;

@Controller
public class HelloController {

    @Value("${person.name}")
    private String name;

//    @Value("${person.hobby}")
//    private List<String> hobby;
    @Value("${person.birthday}")
    private String birthday;

    @GetMapping("/hello")
    @ResponseBody
    public String hell0(){
        return "hello "+name+",出生日期:"+birthday;
    }
}
